<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>lacewing.packetloaders.client</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="lacewing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://mp2.dk">Python Lacewing Library</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="lacewing-module.html">Package&nbsp;lacewing</a> ::
        <a href="lacewing.packetloaders-module.html">Package&nbsp;packetloaders</a> ::
        Module&nbsp;client
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="lacewing.packetloaders.client-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="lacewing.packetloaders.client-module.html" onclick="show_private();">Module lacewing.packetloaders.client</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># Copyright (c) 2011 Mathias Kaerlev.</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"># See LICENSE for details.</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">struct</tt> <tt class="py-keyword">import</tt> <tt class="py-name">Struct</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package lacewing=lacewing-module.html"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-0', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module lacewing.baseloader=lacewing.baseloader-module.html"><a title="lacewing.baseloader" class="py-name" href="#" onclick="return doclink('link-1', 'baseloader', 'link-1');">baseloader</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">_BaseLoader</tt><tt class="py-op">,</tt> <tt class="py-name">_EmptyLoader</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-2', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Module lacewing.bitdict=lacewing.bitdict-module.html"><a title="lacewing.bitdict" class="py-name" href="#" onclick="return doclink('link-3', 'bitdict', 'link-3');">bitdict</a></tt> <tt class="py-keyword">import</tt> <tt id="link-4" class="py-name" targets="Class lacewing.bitdict.BitDict=lacewing.bitdict.BitDict-class.html"><a title="lacewing.bitdict.BitDict" class="py-name" href="#" onclick="return doclink('link-4', 'BitDict', 'link-4');">BitDict</a></tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-5" class="py-name"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-5', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Package lacewing.moo.packetloaders=lacewing.moo.packetloaders-module.html,Package lacewing.packetloaders=lacewing.packetloaders-module.html"><a title="lacewing.moo.packetloaders
lacewing.packetloaders" class="py-name" href="#" onclick="return doclink('link-6', 'packetloaders', 'link-6');">packetloaders</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Module lacewing.moo.packetloaders.common=lacewing.moo.packetloaders.common-module.html,Module lacewing.packetloaders.common=lacewing.packetloaders.common-module.html"><a title="lacewing.moo.packetloaders.common
lacewing.packetloaders.common" class="py-name" href="#" onclick="return doclink('link-7', 'common', 'link-7');">common</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">(</tt><tt class="py-name">_BinaryMessageMixin</tt><tt class="py-op">,</tt>  </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line">    <tt class="py-name">_ObjectMessageMixin</tt><tt class="py-op">)</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-8" class="py-name"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-8', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-9" class="py-name"><a title="lacewing.moo.packetloaders
lacewing.packetloaders" class="py-name" href="#" onclick="return doclink('link-9', 'packetloaders', 'link-6');">packetloaders</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="lacewing.moo.packetloaders.common
lacewing.packetloaders.common" class="py-name" href="#" onclick="return doclink('link-10', 'common', 'link-7');">common</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">(</tt><tt id="link-11" class="py-name" targets="Variable lacewing.packetloaders.common.CONNECT=lacewing.packetloaders.common-module.html#CONNECT"><a title="lacewing.packetloaders.common.CONNECT" class="py-name" href="#" onclick="return doclink('link-11', 'CONNECT', 'link-11');">CONNECT</a></tt><tt class="py-op">,</tt> <tt id="link-12" class="py-name" targets="Variable lacewing.packetloaders.common.SET_NAME=lacewing.packetloaders.common-module.html#SET_NAME"><a title="lacewing.packetloaders.common.SET_NAME" class="py-name" href="#" onclick="return doclink('link-12', 'SET_NAME', 'link-12');">SET_NAME</a></tt><tt class="py-op">,</tt> <tt id="link-13" class="py-name" targets="Variable lacewing.packetloaders.common.JOIN_CHANNEL=lacewing.packetloaders.common-module.html#JOIN_CHANNEL"><a title="lacewing.packetloaders.common.JOIN_CHANNEL" class="py-name" href="#" onclick="return doclink('link-13', 'JOIN_CHANNEL', 'link-13');">JOIN_CHANNEL</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line">    <tt id="link-14" class="py-name" targets="Variable lacewing.packetloaders.common.LEAVE_CHANNEL=lacewing.packetloaders.common-module.html#LEAVE_CHANNEL"><a title="lacewing.packetloaders.common.LEAVE_CHANNEL" class="py-name" href="#" onclick="return doclink('link-14', 'LEAVE_CHANNEL', 'link-14');">LEAVE_CHANNEL</a></tt><tt class="py-op">)</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt id="link-15" class="py-name" targets="Variable lacewing.packetloaders.client.REQUEST_TYPE=lacewing.packetloaders.client-module.html#REQUEST_TYPE"><a title="lacewing.packetloaders.client.REQUEST_TYPE" class="py-name" href="#" onclick="return doclink('link-15', 'REQUEST_TYPE', 'link-15');">REQUEST_TYPE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;B'</tt><tt class="py-op">)</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt id="link-16" class="py-name" targets="Variable lacewing.packetloaders.client.FLAG_DATA=lacewing.packetloaders.client-module.html#FLAG_DATA"><a title="lacewing.packetloaders.client.FLAG_DATA" class="py-name" href="#" onclick="return doclink('link-16', 'FLAG_DATA', 'link-16');">FLAG_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;B'</tt><tt class="py-op">)</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt id="link-17" class="py-name" targets="Variable lacewing.packetloaders.client.CHANNEL_DATA=lacewing.packetloaders.client-module.html#CHANNEL_DATA"><a title="lacewing.packetloaders.client.CHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-17', 'CHANNEL_DATA', 'link-17');">CHANNEL_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;H'</tt><tt class="py-op">)</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt id="link-18" class="py-name" targets="Variable lacewing.packetloaders.client.SUBCHANNEL_DATA=lacewing.packetloaders.client-module.html#SUBCHANNEL_DATA,Variable lacewing.packetloaders.server.SUBCHANNEL_DATA=lacewing.packetloaders.server-module.html#SUBCHANNEL_DATA"><a title="lacewing.packetloaders.client.SUBCHANNEL_DATA
lacewing.packetloaders.server.SUBCHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-18', 'SUBCHANNEL_DATA', 'link-18');">SUBCHANNEL_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;B'</tt><tt class="py-op">)</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt id="link-19" class="py-name" targets="Variable lacewing.packetloaders.client.CHANNEL_MESSAGE_DATA=lacewing.packetloaders.client-module.html#CHANNEL_MESSAGE_DATA,Variable lacewing.packetloaders.server.CHANNEL_MESSAGE_DATA=lacewing.packetloaders.server-module.html#CHANNEL_MESSAGE_DATA"><a title="lacewing.packetloaders.client.CHANNEL_MESSAGE_DATA
lacewing.packetloaders.server.CHANNEL_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-19', 'CHANNEL_MESSAGE_DATA', 'link-19');">CHANNEL_MESSAGE_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;BH'</tt><tt class="py-op">)</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt id="link-20" class="py-name" targets="Variable lacewing.packetloaders.client.PEER_MESSAGE_DATA=lacewing.packetloaders.client-module.html#PEER_MESSAGE_DATA,Variable lacewing.packetloaders.server.PEER_MESSAGE_DATA=lacewing.packetloaders.server-module.html#PEER_MESSAGE_DATA"><a title="lacewing.packetloaders.client.PEER_MESSAGE_DATA
lacewing.packetloaders.server.PEER_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-20', 'PEER_MESSAGE_DATA', 'link-20');">PEER_MESSAGE_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;BHH'</tt><tt class="py-op">)</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt id="link-21" class="py-name" targets="Variable lacewing.packetloaders.client.CHANNEL_MASTER_DATA=lacewing.packetloaders.client-module.html#CHANNEL_MASTER_DATA"><a title="lacewing.packetloaders.client.CHANNEL_MASTER_DATA" class="py-name" href="#" onclick="return doclink('link-21', 'CHANNEL_MASTER_DATA', 'link-21');">CHANNEL_MASTER_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HBH'</tt><tt class="py-op">)</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt id="link-22" class="py-name" targets="Variable lacewing.packetloaders.client.MASTER_KICK=lacewing.packetloaders.client-module.html#MASTER_KICK"><a title="lacewing.packetloaders.client.MASTER_KICK" class="py-name" href="#" onclick="return doclink('link-22', 'MASTER_KICK', 'link-22');">MASTER_KICK</a></tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt class="py-name">xrange</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt id="link-23" class="py-name" targets="Variable lacewing.packetloaders.client.CHANNEL_FLAGS=lacewing.packetloaders.client-module.html#CHANNEL_FLAGS"><a title="lacewing.packetloaders.client.CHANNEL_FLAGS" class="py-name" href="#" onclick="return doclink('link-23', 'CHANNEL_FLAGS', 'link-23');">CHANNEL_FLAGS</a></tt> <tt class="py-op">=</tt> <tt id="link-24" class="py-name"><a title="lacewing.bitdict.BitDict" class="py-name" href="#" onclick="return doclink('link-24', 'BitDict', 'link-4');">BitDict</a></tt><tt class="py-op">(</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line">    <tt class="py-string">'HideChannel'</tt><tt class="py-op">,</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">    <tt class="py-string">'AutoClose'</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-op">)</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"> </tt>
<a name="Request"></a><div id="Request-def"><a name="L28"></a><tt class="py-lineno"> 28</tt> <a class="py-toggle" href="#" id="Request-toggle" onclick="return toggle('Request');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client.Request-class.html">Request</a><tt class="py-op">(</tt><tt class="py-base-class">_BaseLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Request-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Request-expanded"><a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">    <tt id="link-25" class="py-name" targets="Variable lacewing.packetloaders.client.Request.request=lacewing.packetloaders.client.Request-class.html#request"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-25', 'request', 'link-25');">request</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">    <tt id="link-26" class="py-name" targets="Variable lacewing.packetloaders.client.Request.version=lacewing.packetloaders.client.Request-class.html#version"><a title="lacewing.packetloaders.client.Request.version" class="py-name" href="#" onclick="return doclink('link-26', 'version', 'link-26');">version</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">    <tt id="link-27" class="py-name" targets="Variable lacewing.client.ClientChannel.name=lacewing.client.ClientChannel-class.html#name,Variable lacewing.client.Peer.name=lacewing.client.Peer-class.html#name,Variable lacewing.moo.client.Channel.name=lacewing.moo.client.Channel-class.html#name,Variable lacewing.moo.client.Player.name=lacewing.moo.client.Player-class.html#name,Variable lacewing.moo.protocol.MooProtocol.name=lacewing.moo.protocol.MooProtocol-class.html#name,Variable lacewing.moo.server.Channel.name=lacewing.moo.server.Channel-class.html#name,Variable lacewing.packetloaders.client.Request.name=lacewing.packetloaders.client.Request-class.html#name,Variable lacewing.packetloaders.server.ChannelPeer.name=lacewing.packetloaders.server.ChannelPeer-class.html#name,Variable lacewing.packetloaders.server.Peer.name=lacewing.packetloaders.server.Peer-class.html#name,Variable lacewing.packetloaders.server.Response.name=lacewing.packetloaders.server.Response-class.html#name,Variable lacewing.protocol.BaseProtocol.name=lacewing.protocol.BaseProtocol-class.html#name,Variable lacewing.server.ServerChannel.name=lacewing.server.ServerChannel-class.html#name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-27', 'name', 'link-27');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">    <tt id="link-28" class="py-name" targets="Variable lacewing.bitdict.BitDict.flags=lacewing.bitdict.BitDict-class.html#flags,Variable lacewing.packetloaders.client.Request.flags=lacewing.packetloaders.client.Request-class.html#flags"><a title="lacewing.bitdict.BitDict.flags
lacewing.packetloaders.client.Request.flags" class="py-name" href="#" onclick="return doclink('link-28', 'flags', 'link-28');">flags</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">    <tt id="link-29" class="py-name" targets="Variable lacewing.moo.client.Player.channel=lacewing.moo.client.Player-class.html#channel,Variable lacewing.packetloaders.client.ChannelMaster.channel=lacewing.packetloaders.client.ChannelMaster-class.html#channel,Variable lacewing.packetloaders.client.Request.channel=lacewing.packetloaders.client.Request-class.html#channel,Variable lacewing.packetloaders.server.Peer.channel=lacewing.packetloaders.server.Peer-class.html#channel,Variable lacewing.packetloaders.server.Response.channel=lacewing.packetloaders.server.Response-class.html#channel"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-29', 'channel', 'link-29');">channel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">     </tt>
<a name="Request.initialize"></a><div id="Request.initialize-def"><a name="L35"></a><tt class="py-lineno"> 35</tt> <a class="py-toggle" href="#" id="Request.initialize-toggle" onclick="return toggle('Request.initialize');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.client.Request-class.html#initialize">initialize</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Request.initialize-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Request.initialize-expanded"><a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-30" class="py-name"><a title="lacewing.bitdict.BitDict.flags
lacewing.packetloaders.client.Request.flags" class="py-name" href="#" onclick="return doclink('link-30', 'flags', 'link-28');">flags</a></tt> <tt class="py-op">=</tt> <tt id="link-31" class="py-name"><a title="lacewing.packetloaders.client.CHANNEL_FLAGS" class="py-name" href="#" onclick="return doclink('link-31', 'CHANNEL_FLAGS', 'link-23');">CHANNEL_FLAGS</a></tt><tt class="py-op">.</tt><tt id="link-32" class="py-name" targets="Method lacewing.bitdict.BitDict.copy()=lacewing.bitdict.BitDict-class.html#copy"><a title="lacewing.bitdict.BitDict.copy" class="py-name" href="#" onclick="return doclink('link-32', 'copy', 'link-32');">copy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"> </tt>
<a name="Request.read"></a><div id="Request.read-def"><a name="L38"></a><tt class="py-lineno"> 38</tt> <a class="py-toggle" href="#" id="Request.read-toggle" onclick="return toggle('Request.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.client.Request-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Request.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Request.read-expanded"><a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt id="link-33" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-33', 'request', 'link-25');">request</a></tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt id="link-34" class="py-name"><a title="lacewing.packetloaders.client.REQUEST_TYPE" class="py-name" href="#" onclick="return doclink('link-34', 'REQUEST_TYPE', 'link-15');">REQUEST_TYPE</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-35" class="py-name" targets="Method lacewing.bytereader.ByteReader.data()=lacewing.bytereader.ByteReader-class.html#data"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-35', 'data', 'link-35');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">        <tt id="link-36" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-36', 'data', 'link-35');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-37" class="py-name" targets="Variable lacewing.bytereader.ByteReader.buffer=lacewing.bytereader.ByteReader-class.html#buffer"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-37', 'buffer', 'link-37');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-38" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-38', 'data', 'link-35');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-39', 'request', 'link-25');">request</a></tt> <tt class="py-op">=</tt> <tt id="link-40" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-40', 'request', 'link-25');">request</a></tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-41" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-41', 'request', 'link-25');">request</a></tt> <tt class="py-op">==</tt> <tt id="link-42" class="py-name"><a title="lacewing.packetloaders.common.CONNECT" class="py-name" href="#" onclick="return doclink('link-42', 'CONNECT', 'link-11');">CONNECT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-43" class="py-name"><a title="lacewing.packetloaders.client.Request.version" class="py-name" href="#" onclick="return doclink('link-43', 'version', 'link-26');">version</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-44" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-44', 'data', 'link-35');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt id="link-45" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-45', 'request', 'link-25');">request</a></tt> <tt class="py-op">==</tt> <tt id="link-46" class="py-name"><a title="lacewing.packetloaders.common.SET_NAME" class="py-name" href="#" onclick="return doclink('link-46', 'SET_NAME', 'link-12');">SET_NAME</a></tt><tt class="py-op">:</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-47', 'name', 'link-27');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-48" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-48', 'data', 'link-35');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt id="link-49" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-49', 'request', 'link-25');">request</a></tt> <tt class="py-op">==</tt> <tt id="link-50" class="py-name"><a title="lacewing.packetloaders.common.JOIN_CHANNEL" class="py-name" href="#" onclick="return doclink('link-50', 'JOIN_CHANNEL', 'link-13');">JOIN_CHANNEL</a></tt><tt class="py-op">:</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">            <tt id="link-51" class="py-name"><a title="lacewing.bitdict.BitDict.flags
lacewing.packetloaders.client.Request.flags" class="py-name" href="#" onclick="return doclink('link-51', 'flags', 'link-28');">flags</a></tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt id="link-52" class="py-name"><a title="lacewing.packetloaders.client.FLAG_DATA" class="py-name" href="#" onclick="return doclink('link-52', 'FLAG_DATA', 'link-16');">FLAG_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-53" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-53', 'data', 'link-35');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="lacewing.bitdict.BitDict.flags
lacewing.packetloaders.client.Request.flags" class="py-name" href="#" onclick="return doclink('link-54', 'flags', 'link-28');">flags</a></tt><tt class="py-op">.</tt><tt id="link-55" class="py-name" targets="Method lacewing.bitdict.BitDict.setFlags()=lacewing.bitdict.BitDict-class.html#setFlags"><a title="lacewing.bitdict.BitDict.setFlags" class="py-name" href="#" onclick="return doclink('link-55', 'setFlags', 'link-55');">setFlags</a></tt><tt class="py-op">(</tt><tt id="link-56" class="py-name"><a title="lacewing.bitdict.BitDict.flags
lacewing.packetloaders.client.Request.flags" class="py-name" href="#" onclick="return doclink('link-56', 'flags', 'link-28');">flags</a></tt><tt class="py-op">)</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-57" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-57', 'name', 'link-27');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-58" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-58', 'buffer', 'link-37');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-59" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-59', 'data', 'link-35');">data</a></tt><tt class="py-op">,</tt> <tt id="link-60" class="py-name"><a title="lacewing.packetloaders.client.FLAG_DATA" class="py-name" href="#" onclick="return doclink('link-60', 'FLAG_DATA', 'link-16');">FLAG_DATA</a></tt><tt class="py-op">.</tt><tt id="link-61" class="py-name" targets="Method lacewing.bytereader.ByteReader.size()=lacewing.bytereader.ByteReader-class.html#size"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-61', 'size', 'link-61');">size</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt id="link-62" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-62', 'request', 'link-25');">request</a></tt> <tt class="py-op">==</tt> <tt id="link-63" class="py-name"><a title="lacewing.packetloaders.common.LEAVE_CHANNEL" class="py-name" href="#" onclick="return doclink('link-63', 'LEAVE_CHANNEL', 'link-14');">LEAVE_CHANNEL</a></tt><tt class="py-op">:</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-64" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-64', 'channel', 'link-29');">channel</a></tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt id="link-65" class="py-name"><a title="lacewing.packetloaders.client.CHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-65', 'CHANNEL_DATA', 'link-17');">CHANNEL_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-66" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-66', 'data', 'link-35');">data</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line"> </tt>
<a name="Request.generate"></a><div id="Request.generate-def"><a name="L53"></a><tt class="py-lineno"> 53</tt> <a class="py-toggle" href="#" id="Request.generate-toggle" onclick="return toggle('Request.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.client.Request-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Request.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Request.generate-expanded"><a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">        <tt id="link-67" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-67', 'request', 'link-25');">request</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-68" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-68', 'request', 'link-25');">request</a></tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-name">requestByte</tt> <tt class="py-op">=</tt> <tt id="link-69" class="py-name"><a title="lacewing.packetloaders.client.REQUEST_TYPE" class="py-name" href="#" onclick="return doclink('link-69', 'REQUEST_TYPE', 'link-15');">REQUEST_TYPE</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt id="link-70" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-70', 'request', 'link-25');">request</a></tt><tt class="py-op">)</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-71" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-71', 'request', 'link-25');">request</a></tt> <tt class="py-op">==</tt> <tt id="link-72" class="py-name"><a title="lacewing.packetloaders.common.CONNECT" class="py-name" href="#" onclick="return doclink('link-72', 'CONNECT', 'link-11');">CONNECT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">requestByte</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-73" class="py-name"><a title="lacewing.packetloaders.client.Request.version" class="py-name" href="#" onclick="return doclink('link-73', 'version', 'link-26');">version</a></tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt id="link-74" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-74', 'request', 'link-25');">request</a></tt> <tt class="py-op">==</tt> <tt id="link-75" class="py-name"><a title="lacewing.packetloaders.common.SET_NAME" class="py-name" href="#" onclick="return doclink('link-75', 'SET_NAME', 'link-12');">SET_NAME</a></tt><tt class="py-op">:</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">requestByte</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-76" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-76', 'name', 'link-27');">name</a></tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt id="link-77" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-77', 'request', 'link-25');">request</a></tt> <tt class="py-op">==</tt> <tt id="link-78" class="py-name"><a title="lacewing.packetloaders.common.JOIN_CHANNEL" class="py-name" href="#" onclick="return doclink('link-78', 'JOIN_CHANNEL', 'link-13');">JOIN_CHANNEL</a></tt><tt class="py-op">:</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-name">requestByte</tt> <tt class="py-op">+</tt> <tt id="link-79" class="py-name"><a title="lacewing.packetloaders.client.FLAG_DATA" class="py-name" href="#" onclick="return doclink('link-79', 'FLAG_DATA', 'link-16');">FLAG_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-80" class="py-name"><a title="lacewing.bitdict.BitDict.flags
lacewing.packetloaders.client.Request.flags" class="py-name" href="#" onclick="return doclink('link-80', 'flags', 'link-28');">flags</a></tt><tt class="py-op">.</tt><tt id="link-81" class="py-name" targets="Method lacewing.bitdict.BitDict.getFlags()=lacewing.bitdict.BitDict-class.html#getFlags,Function lacewing.byteflag.getFlags()=lacewing.byteflag-module.html#getFlags"><a title="lacewing.bitdict.BitDict.getFlags
lacewing.byteflag.getFlags" class="py-name" href="#" onclick="return doclink('link-81', 'getFlags', 'link-81');">getFlags</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-82" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-82', 'name', 'link-27');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt id="link-83" class="py-name"><a title="lacewing.packetloaders.client.Request.request" class="py-name" href="#" onclick="return doclink('link-83', 'request', 'link-25');">request</a></tt> <tt class="py-op">==</tt> <tt id="link-84" class="py-name"><a title="lacewing.packetloaders.common.LEAVE_CHANNEL" class="py-name" href="#" onclick="return doclink('link-84', 'LEAVE_CHANNEL', 'link-14');">LEAVE_CHANNEL</a></tt><tt class="py-op">:</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">requestByte</tt> <tt class="py-op">+</tt> <tt id="link-85" class="py-name"><a title="lacewing.packetloaders.client.CHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-85', 'CHANNEL_DATA', 'link-17');">CHANNEL_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-86" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-86', 'channel', 'link-29');">channel</a></tt><tt class="py-op">)</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">requestByte</tt> </tt>
</div></div><a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"> </tt>
<a name="_ServerMessage"></a><div id="_ServerMessage-def"><a name="L68"></a><tt class="py-lineno"> 68</tt> <a class="py-toggle" href="#" id="_ServerMessage-toggle" onclick="return toggle('_ServerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client._ServerMessage-class.html">_ServerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BaseLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ServerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_ServerMessage-expanded"><a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">    <tt id="link-87" class="py-name" targets="Variable lacewing.moo.packetloaders.client.ClientMessage.subchannel=lacewing.moo.packetloaders.client.ClientMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.client.PrivateMessage.subchannel=lacewing.moo.packetloaders.client.PrivateMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.client.ToChannelMessage.subchannel=lacewing.moo.packetloaders.client.ToChannelMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.server.FromChannelMessage.subchannel=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#subchannel"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-87', 'subchannel', 'link-87');">subchannel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="_ServerMessage.read"></a><div id="_ServerMessage.read-def"><a name="L70"></a><tt class="py-lineno"> 70</tt> <a class="py-toggle" href="#" id="_ServerMessage.read-toggle" onclick="return toggle('_ServerMessage.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.client._ServerMessage-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ServerMessage.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_ServerMessage.read-expanded"><a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-88" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-88', 'subchannel', 'link-87');">subchannel</a></tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt id="link-89" class="py-name"><a title="lacewing.packetloaders.client.SUBCHANNEL_DATA
lacewing.packetloaders.server.SUBCHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-89', 'SUBCHANNEL_DATA', 'link-18');">SUBCHANNEL_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-90" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-90', 'data', 'link-35');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">readMessage</tt><tt class="py-op">(</tt><tt id="link-91" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-91', 'buffer', 'link-37');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-92" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-92', 'data', 'link-35');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">     </tt>
<a name="_ServerMessage.generate"></a><div id="_ServerMessage.generate-def"><a name="L74"></a><tt class="py-lineno"> 74</tt> <a class="py-toggle" href="#" id="_ServerMessage.generate-toggle" onclick="return toggle('_ServerMessage.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.client._ServerMessage-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ServerMessage.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_ServerMessage.generate-expanded"><a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-93" class="py-name"><a title="lacewing.packetloaders.client.SUBCHANNEL_DATA
lacewing.packetloaders.server.SUBCHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-93', 'SUBCHANNEL_DATA', 'link-18');">SUBCHANNEL_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-94" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-94', 'subchannel', 'link-87');">subchannel</a></tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">generateMessage</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line"> </tt>
<a name="_ChannelMessage"></a><div id="_ChannelMessage-def"><a name="L77"></a><tt class="py-lineno"> 77</tt> <a class="py-toggle" href="#" id="_ChannelMessage-toggle" onclick="return toggle('_ChannelMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client._ChannelMessage-class.html">_ChannelMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BaseLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ChannelMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_ChannelMessage-expanded"><a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">    <tt id="link-95" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-95', 'subchannel', 'link-87');">subchannel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">    <tt id="link-96" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-96', 'channel', 'link-29');">channel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="_ChannelMessage.read"></a><div id="_ChannelMessage.read-def"><a name="L80"></a><tt class="py-lineno"> 80</tt> <a class="py-toggle" href="#" id="_ChannelMessage.read-toggle" onclick="return toggle('_ChannelMessage.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.client._ChannelMessage-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ChannelMessage.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_ChannelMessage.read-expanded"><a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-97" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-97', 'subchannel', 'link-87');">subchannel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-98" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-98', 'channel', 'link-29');">channel</a></tt> <tt class="py-op">=</tt> <tt id="link-99" class="py-name"><a title="lacewing.packetloaders.client.CHANNEL_MESSAGE_DATA
lacewing.packetloaders.server.CHANNEL_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-99', 'CHANNEL_MESSAGE_DATA', 'link-19');">CHANNEL_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-100" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-100', 'data', 'link-35');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">readMessage</tt><tt class="py-op">(</tt><tt id="link-101" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-101', 'buffer', 'link-37');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-102" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-102', 'data', 'link-35');">data</a></tt><tt class="py-op">,</tt> <tt id="link-103" class="py-name"><a title="lacewing.packetloaders.client.CHANNEL_MESSAGE_DATA
lacewing.packetloaders.server.CHANNEL_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-103', 'CHANNEL_MESSAGE_DATA', 'link-19');">CHANNEL_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt id="link-104" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-104', 'size', 'link-61');">size</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">     </tt>
<a name="_ChannelMessage.generate"></a><div id="_ChannelMessage.generate-def"><a name="L84"></a><tt class="py-lineno"> 84</tt> <a class="py-toggle" href="#" id="_ChannelMessage.generate-toggle" onclick="return toggle('_ChannelMessage.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.client._ChannelMessage-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ChannelMessage.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_ChannelMessage.generate-expanded"><a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-105" class="py-name"><a title="lacewing.packetloaders.client.CHANNEL_MESSAGE_DATA
lacewing.packetloaders.server.CHANNEL_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-105', 'CHANNEL_MESSAGE_DATA', 'link-19');">CHANNEL_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-106" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-106', 'subchannel', 'link-87');">subchannel</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-107" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-107', 'channel', 'link-29');">channel</a></tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">generateMessage</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"> </tt>
<a name="_PeerMessage"></a><div id="_PeerMessage-def"><a name="L88"></a><tt class="py-lineno"> 88</tt> <a class="py-toggle" href="#" id="_PeerMessage-toggle" onclick="return toggle('_PeerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client._PeerMessage-class.html">_PeerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BaseLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_PeerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_PeerMessage-expanded"><a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">    <tt id="link-108" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-108', 'subchannel', 'link-87');">subchannel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">    <tt id="link-109" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-109', 'channel', 'link-29');">channel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">    <tt id="link-110" class="py-name" targets="Variable lacewing.packetloaders.client.ChannelMaster.peer=lacewing.packetloaders.client.ChannelMaster-class.html#peer,Variable lacewing.packetloaders.server.Peer.peer=lacewing.packetloaders.server.Peer-class.html#peer"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-110', 'peer', 'link-110');">peer</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="_PeerMessage.read"></a><div id="_PeerMessage.read-def"><a name="L92"></a><tt class="py-lineno"> 92</tt> <a class="py-toggle" href="#" id="_PeerMessage.read-toggle" onclick="return toggle('_PeerMessage.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.client._PeerMessage-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_PeerMessage.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_PeerMessage.read-expanded"><a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-111" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-111', 'subchannel', 'link-87');">subchannel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-112" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-112', 'channel', 'link-29');">channel</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-113" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-113', 'peer', 'link-110');">peer</a></tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt id="link-114" class="py-name"><a title="lacewing.packetloaders.client.PEER_MESSAGE_DATA
lacewing.packetloaders.server.PEER_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-114', 'PEER_MESSAGE_DATA', 'link-20');">PEER_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-115" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-115', 'data', 'link-35');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">readMessage</tt><tt class="py-op">(</tt><tt id="link-116" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-116', 'buffer', 'link-37');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-117" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-117', 'data', 'link-35');">data</a></tt><tt class="py-op">,</tt> <tt id="link-118" class="py-name"><a title="lacewing.packetloaders.client.PEER_MESSAGE_DATA
lacewing.packetloaders.server.PEER_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-118', 'PEER_MESSAGE_DATA', 'link-20');">PEER_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt id="link-119" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-119', 'size', 'link-61');">size</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">     </tt>
<a name="_PeerMessage.generate"></a><div id="_PeerMessage.generate-def"><a name="L97"></a><tt class="py-lineno"> 97</tt> <a class="py-toggle" href="#" id="_PeerMessage.generate-toggle" onclick="return toggle('_PeerMessage.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.client._PeerMessage-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_PeerMessage.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_PeerMessage.generate-expanded"><a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-120" class="py-name"><a title="lacewing.packetloaders.client.PEER_MESSAGE_DATA
lacewing.packetloaders.server.PEER_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-120', 'PEER_MESSAGE_DATA', 'link-20');">PEER_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-121" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-121', 'subchannel', 'link-87');">subchannel</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-122" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-122', 'channel', 'link-29');">channel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-123" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-123', 'peer', 'link-110');">peer</a></tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">generateMessage</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"> </tt>
<a name="BinaryServerMessage"></a><div id="BinaryServerMessage-def"><a name="L101"></a><tt class="py-lineno">101</tt> <a class="py-toggle" href="#" id="BinaryServerMessage-toggle" onclick="return toggle('BinaryServerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client.BinaryServerMessage-class.html">BinaryServerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BinaryMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ServerMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BinaryServerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BinaryServerMessage-expanded"><a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line"> </tt>
<a name="BinaryChannelMessage"></a><div id="BinaryChannelMessage-def"><a name="L104"></a><tt class="py-lineno">104</tt> <a class="py-toggle" href="#" id="BinaryChannelMessage-toggle" onclick="return toggle('BinaryChannelMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client.BinaryChannelMessage-class.html">BinaryChannelMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BinaryMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ChannelMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BinaryChannelMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BinaryChannelMessage-expanded"><a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line"> </tt>
<a name="BinaryPeerMessage"></a><div id="BinaryPeerMessage-def"><a name="L107"></a><tt class="py-lineno">107</tt> <a class="py-toggle" href="#" id="BinaryPeerMessage-toggle" onclick="return toggle('BinaryPeerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client.BinaryPeerMessage-class.html">BinaryPeerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BinaryMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_PeerMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BinaryPeerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BinaryPeerMessage-expanded"><a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"> </tt>
<a name="ObjectServerMessage"></a><div id="ObjectServerMessage-def"><a name="L110"></a><tt class="py-lineno">110</tt> <a class="py-toggle" href="#" id="ObjectServerMessage-toggle" onclick="return toggle('ObjectServerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client.ObjectServerMessage-class.html">ObjectServerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_ObjectMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ServerMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ObjectServerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ObjectServerMessage-expanded"><a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"> </tt>
<a name="ObjectChannelMessage"></a><div id="ObjectChannelMessage-def"><a name="L113"></a><tt class="py-lineno">113</tt> <a class="py-toggle" href="#" id="ObjectChannelMessage-toggle" onclick="return toggle('ObjectChannelMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client.ObjectChannelMessage-class.html">ObjectChannelMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_ObjectMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ChannelMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ObjectChannelMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ObjectChannelMessage-expanded"><a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line"> </tt>
<a name="ObjectPeerMessage"></a><div id="ObjectPeerMessage-def"><a name="L116"></a><tt class="py-lineno">116</tt> <a class="py-toggle" href="#" id="ObjectPeerMessage-toggle" onclick="return toggle('ObjectPeerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client.ObjectPeerMessage-class.html">ObjectPeerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_ObjectMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_PeerMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ObjectPeerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ObjectPeerMessage-expanded"><a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line"> </tt>
<a name="UDPHello"></a><div id="UDPHello-def"><a name="L119"></a><tt class="py-lineno">119</tt> <a class="py-toggle" href="#" id="UDPHello-toggle" onclick="return toggle('UDPHello');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client.UDPHello-class.html">UDPHello</a><tt class="py-op">(</tt><tt class="py-base-class">_EmptyLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="UDPHello-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="UDPHello-expanded"><a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line"> </tt>
<a name="Pong"></a><div id="Pong-def"><a name="L122"></a><tt class="py-lineno">122</tt> <a class="py-toggle" href="#" id="Pong-toggle" onclick="return toggle('Pong');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client.Pong-class.html">Pong</a><tt class="py-op">(</tt><tt class="py-base-class">_EmptyLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Pong-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Pong-expanded"><a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line"> </tt>
<a name="ChannelMaster"></a><div id="ChannelMaster-def"><a name="L125"></a><tt class="py-lineno">125</tt> <a class="py-toggle" href="#" id="ChannelMaster-toggle" onclick="return toggle('ChannelMaster');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.client.ChannelMaster-class.html">ChannelMaster</a><tt class="py-op">(</tt><tt class="py-base-class">_BaseLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChannelMaster-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ChannelMaster-expanded"><a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">    <tt id="link-124" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-124', 'channel', 'link-29');">channel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">    <tt id="link-125" class="py-name" targets="Variable lacewing.packetloaders.client.ChannelMaster.action=lacewing.packetloaders.client.ChannelMaster-class.html#action"><a title="lacewing.packetloaders.client.ChannelMaster.action" class="py-name" href="#" onclick="return doclink('link-125', 'action', 'link-125');">action</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">    <tt id="link-126" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-126', 'peer', 'link-110');">peer</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line"> </tt>
<a name="ChannelMaster.read"></a><div id="ChannelMaster.read-def"><a name="L130"></a><tt class="py-lineno">130</tt> <a class="py-toggle" href="#" id="ChannelMaster.read-toggle" onclick="return toggle('ChannelMaster.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.client.ChannelMaster-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChannelMaster.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChannelMaster.read-expanded"><a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-127" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-127', 'channel', 'link-29');">channel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-128" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.action" class="py-name" href="#" onclick="return doclink('link-128', 'action', 'link-125');">action</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-129" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-129', 'peer', 'link-110');">peer</a></tt> <tt class="py-op">=</tt> <tt id="link-130" class="py-name"><a title="lacewing.packetloaders.client.CHANNEL_MASTER_DATA" class="py-name" href="#" onclick="return doclink('link-130', 'CHANNEL_MASTER_DATA', 'link-21');">CHANNEL_MASTER_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">            <tt id="link-131" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-131', 'data', 'link-35');">data</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">     </tt>
<a name="ChannelMaster.generate"></a><div id="ChannelMaster.generate-def"><a name="L134"></a><tt class="py-lineno">134</tt> <a class="py-toggle" href="#" id="ChannelMaster.generate-toggle" onclick="return toggle('ChannelMaster.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.client.ChannelMaster-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChannelMaster.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChannelMaster.generate-expanded"><a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-132" class="py-name"><a title="lacewing.packetloaders.client.CHANNEL_MASTER_DATA" class="py-name" href="#" onclick="return doclink('link-132', 'CHANNEL_MASTER_DATA', 'link-21');">CHANNEL_MASTER_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-133" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-133', 'channel', 'link-29');">channel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-134" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.action" class="py-name" href="#" onclick="return doclink('link-134', 'action', 'link-125');">action</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-135" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-135', 'peer', 'link-110');">peer</a></tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="lacewing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://mp2.dk">Python Lacewing Library</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Thu Dec 22 06:20:00 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
